<?php
namespace Admin\Service;

use Think\Service\BasicService;

class LoginService extends BasicService {
    public function insert($model) {
        return $this->db->add($model);
    }

    public function remove($condition) {
        return $this->db->where($condition)->delete();
    }

    public function update($where, $model = array()) {
        return $this->db->where($where)->save($model);
    }

    public function find($condition) {
        return $this->db->where($condition)->find();
    }

    public function query($condition) {
        $data = $this->db->where($condition)->select();
        return $data;
    }


}

?>